package com.huamoxi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user")
public class User extends BaseEntity implements Serializable {

    // 主键
    @Id
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    // 账户
    private String account;

    // 密码
    private String password;

    // 昵称
    private String nickName;

    // 姓名
    private String name;

    // 电话
    private String phone;

    // 邮件
    private String email;

    // 住址
    private String address;

    // 账号状态 0正常 1锁定
    private Integer status;
}
